package chiss.org.draft.ihs;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for HealthStatistics complex type.
 *
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 *
 * <pre>
 * &lt;complexType name="HealthStatistics">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="id" type="{urn:org.chiss:draft:ihs}string"/>
 *         &lt;element name="createdTime" type="{urn:org.chiss:draft:ihs}string"/>
 *         &lt;element name="frequency" type="{urn:org.chiss:draft:ihs}FrequencyUse"/>
 *         &lt;element name="year" type="{urn:org.chiss:draft:ihs}string"/>
 *         &lt;element name="month" type="{urn:org.chiss:draft:ihs}string" minOccurs="0"/>
 *         &lt;element name="legalAuthenticator" type="{urn:org.chiss:draft:ihs}HealthStatistics.Authenticator"/>
 *         &lt;element name="custdian" type="{urn:org.chiss:draft:ihs}HealthStatistics.Custdian"/>
 *         &lt;element ref="{urn:org.chiss:draft:ihs}indicatorData" maxOccurs="unbounded"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HealthStatistics", propOrder = {"id", "createdTime",
        "frequency", "year", "month", "legalAuthenticator", "custdian",
        "indicatorData"})
public class HealthStatistics {

    @XmlElement(required = true)
    protected String id;
    @XmlElement(required = true)
    protected String createdTime;
    @XmlElement(required = true)
    protected FrequencyUse frequency;
    @XmlElement(required = true)
    protected String year;
    protected String month;
    @XmlElement(required = true)
    protected HealthStatisticsAuthenticator legalAuthenticator;
    @XmlElement(required = true)
    protected HealthStatisticsCustdian custdian;
    @XmlElement(required = true)
    protected List<IndicatorData> indicatorData;

    /**
     * Gets the value of the id property.
     *
     * @return possible object is {@link String }
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     *
     * @param value allowed object is {@link String }
     */
    public void setId(String value) {
        this.id = value;
    }

    /**
     * Gets the value of the createdTime property.
     *
     * @return possible object is {@link String }
     */
    public String getCreatedTime() {
        return createdTime;
    }

    /**
     * Sets the value of the createdTime property.
     *
     * @param value allowed object is {@link String }
     */
    public void setCreatedTime(String value) {
        this.createdTime = value;
    }

    /**
     * Gets the value of the frequency property.
     *
     * @return possible object is {@link FrequencyUse }
     */
    public FrequencyUse getFrequency() {
        return frequency;
    }

    /**
     * Sets the value of the frequency property.
     *
     * @param value allowed object is {@link FrequencyUse }
     */
    public void setFrequency(FrequencyUse value) {
        this.frequency = value;
    }

    /**
     * Gets the value of the year property.
     *
     * @return possible object is {@link String }
     */
    public String getYear() {
        return year;
    }

    /**
     * Sets the value of the year property.
     *
     * @param value allowed object is {@link String }
     */
    public void setYear(String value) {
        this.year = value;
    }

    /**
     * Gets the value of the month property.
     *
     * @return possible object is {@link String }
     */
    public String getMonth() {
        return month;
    }

    /**
     * Sets the value of the month property.
     *
     * @param value allowed object is {@link String }
     */
    public void setMonth(String value) {
        this.month = value;
    }

    /**
     * Gets the value of the legalAuthenticator property.
     *
     * @return possible object is {@link HealthStatisticsAuthenticator }
     */
    public HealthStatisticsAuthenticator getLegalAuthenticator() {
        return legalAuthenticator;
    }

    /**
     * Sets the value of the legalAuthenticator property.
     *
     * @param value allowed object is {@link HealthStatisticsAuthenticator }
     */
    public void setLegalAuthenticator(HealthStatisticsAuthenticator value) {
        this.legalAuthenticator = value;
    }

    /**
     * Gets the value of the custdian property.
     *
     * @return possible object is {@link HealthStatisticsCustdian }
     */
    public HealthStatisticsCustdian getCustdian() {
        return custdian;
    }

    /**
     * Sets the value of the custdian property.
     *
     * @param value allowed object is {@link HealthStatisticsCustdian }
     */
    public void setCustdian(HealthStatisticsCustdian value) {
        this.custdian = value;
    }

    /**
     * Gets the value of the indicatorData property.
     *
     * <p>
     * This accessor method returns a reference to the live list, not a
     * snapshot. Therefore any modification you make to the returned list will
     * be present inside the JAXB object. This is why there is not a
     * <CODE>set</CODE> method for the indicatorData property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     *
     * <pre>
     * getIndicatorData().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link IndicatorData }
     */
    public List<IndicatorData> getIndicatorData() {
        if (indicatorData == null) {
            indicatorData = new ArrayList<IndicatorData>();
        }
        return this.indicatorData;
    }

    public void setIndicatorData(List<IndicatorData> indicatorData) {
        this.indicatorData = indicatorData;
    }


}
